import request from '@/utils/request'

// 查询考核打分列表
export function listScoring(query) {
  return request({
    url: '/performance/scoring/list',
    method: 'get',
    params: query
  })
}

// 查询考核打分详细
export function getScoring(id) {
  return request({
    url: '/performance/scoring/' + id,
    method: 'get'
  })
}


export function getALLScoring() {
  return request({
    url: '/performance/data/getAll',
    method: 'get'
  })
}

// 新增考核打分
export function addScoring(data) {
  return request({
    url: '/performance/scoring',
    method: 'post',
    data: data
  })
}



// 审核
export function examineScoring(data) {
  return request({
    url: '/performance/scoring/examineScoring',
    method: 'post',
    data: data
  })
}

// 修改考核打分
export function updateScoring(data) {
  return request({
    url: '/performance/scoring',
    method: 'put',
    data: data
  })
}

// 删除考核打分
export function delScoring(id) {
  return request({
    url: '/performance/scoring/' + id,
    method: 'delete'
  })
}
